<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/public.jsp" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑库存信息</title>
	<script type="text/javascript" src="${ctx}/js/checkFrom.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#foodNum").change(function(){
			var num=	$("#foodNum").val();
				$("#inputNum").val(num);
			});
		});
	</script>
</head>
<body>
<input type="hidden" id="date-input" />
<a href="${ctx}/index.jsp">返回主页</a>
<a href="${ctx}/store/list">返回库存列表</a>
<hr />
<form action="${ctx }/store/update" method="post"  name="myform">
<input type="hidden" name="storeId" value="${store.storeId}">
	<table class="t1">
		<tr>
			<td>入库类型</td>
			<td>
				<select name="storageType" id="storageType" >
					<option>采购入库</option>
					<option>退货入库</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>过期时间</td>
			<td><input type="text" id="calendar" name="overDate" required value="${store.overDate}" readonly/></td>
		</tr>
		<tr>
			<td>入库数量</td>
			<td><input type="hidden" name="inputNum" id="inputNum" required value="${store.inputNum}">
				<input type="text" name="foodNum" id="foodNum" required value="${store.foodNum}"></td>
		</tr>
		<tr>
			<td>最低库存</td>
			<td><input type="text" name="storegeMin" id="storegeMin" required value="${store.storegeMin}"></td>
		</tr>
		<tr>
			<td>备注</td>
			<td><input type="text" name="remarks" id="remarks" value="${store.remarks}" ></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="保存"> </td>
		</tr>
	</table>
</form>
</body>
</html>